﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using RAD.Modules.UI.Interfaces;
using RAD.Modules.UI.Interfaces;

namespace RAD.Modules.UI.Views
{
    /// <summary>
    /// Interaction logic for MainToolBar.xaml
    /// </summary>
    public partial class MainToolBar : UserControl, IMainToolBar
    {
        public MainToolBar()
        {
            InitializeComponent();
        }

        #region IMainToolBar Members

        public event EventHandler<EventArgs> AboutViewShow;
        public event EventHandler<EventArgs> ApplicationClose;

        #endregion

        private void AboutToolbarButton_Click(object sender, RoutedEventArgs e)
        {
            e.Handled = true;
            AboutViewShow(sender, EventArgs.Empty);
        }

        private void ExitToolbarButton_Click(object sender, RoutedEventArgs e)
        {
            e.Handled = true;
            ApplicationClose(sender, EventArgs.Empty);
        }
    }
}
